package cn.ainit.base.product.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "BS_PRODUCT")
public class ProductInfo implements java.io.Serializable {

	// Fields

	private String hid;             //32位唯一码
	private String hisbn;		//书号
	private Double hprice;          //定价
	private Long hperiodId;         //页码
	private String hname;			//商品名称
	private String hnameForeign;	//译名
	private String stationId;		//所属站点
	private String isbnClass;		//中图分类
	private Long pubId;				//出版社
	private Date hpublishDate;		//出版日期
	private Long htype;				//商品分类
	private Double hinputPrice;		//进货价
	private String hauthor;			//作者
	private String hlevel;			//商品级别
	private String isMy;			//是否本版书
	private String flagSalesClass;	//商品属性
	private String kbId;			//开本
	private String zzId;			//装帧
	private Long vedioId;			//音像码
	private String oIdLaster;		//采购人员
	private Double discountMember;	//会员折扣
	private Double discountPx;		//批销折扣
	private Double discountLs;		//零售折扣
	private Double pricePx;			//批销价格
	private Double priceMember;		//会员价格
	private Double priceLs;			//零售价格
	private String shelfId;			//架号
	private Long hpackageAmount;	//包册
	private Long hpackagePiece;		//件包数
	private Date inputDate;			//建档日期
	private String hbanci;			//版次
	private String hfactory;		//主要供货
	private String htranslator;		//译者
	private String htaozhuang;		//套装
	private String hrunStyle;		//经销方式
	private Long hweight;			//商品重量
	private Long hheight;			//商品厚度
	private Integer hwordNumber;	//字数
	private String hmedia;			//介质
	private String hseriesBook;		//丛书
	private Long hyinshu;			//印数
	private Long hyinzhang;			//印张
	private Long hyinci;			//印次
	private String bzId;			//包装
	private String uid;				//单位
	private String hidBelongs;		//商品所属
	private String managerEditor;	//责任编辑
	private String arearLimitName;	//销售区域
	private Long isLock;			//是否锁定
	private String memo;			//备注
	private Integer productUp;		//库存上限
	private Integer productDown;	//库存下限
	private String isExist;			//是否有效
	private String inputMan;		//录入人
	private Date lastModDate;		//最后修改时间
	private String oidLastModify;	//修改人


	@Id
	@Column(name = "H_ID", unique = true, nullable = false, length = 32)
	public String getHid() {
		return hid;
	}
	public void setHid(String hid) {
		this.hid = hid;
	}
	@Column(name = "H_ISBN", nullable = false, precision = 22, scale = 0)
	public String getHisbn() {
		return hisbn;
	}
	public void setHisbn(String hisbn) {
		this.hisbn = hisbn;
	}
	@Column(name = "H_PRICE", precision = 10, scale = 0)
	 public Double getHprice() {
		return hprice;
	}
	public void setHprice(Double hprice) {
		this.hprice = hprice;
	}

	@Column(name = "H_PERIOD_ID", precision = 10, scale = 0)
	public Long getHperiodId() {
		return hperiodId;
	}
	public void setHperiodId(Long hperiodId) {
		this.hperiodId = hperiodId;
	}
	@Column(name = "H_NAME", nullable = false, length = 100)
	public String getHname() {
		return hname;
	}
	public void setHname(String hname) {
		this.hname = hname;
	}
	@Column(name = "H_NAME_FOREIGN", length = 50)
	public String getHnameForeign() {
		return hnameForeign;
	}
	public void setHnameForeign(String hnameForeign) {
		this.hnameForeign = hnameForeign;
	}

	@Column(name = "STATION_ID", length = 10)
	public String getStationId() {
		return this.stationId;
	}

	public void setStationId(String stationId) {
		this.stationId = stationId;
	}

	@Column(name = "ISBN_CLASS", length = 20)
	public String getIsbnClass() {
		return this.isbnClass;
	}

	public void setIsbnClass(String isbnClass) {
		this.isbnClass = isbnClass;
	}

	@Column(name = "PUB_ID", precision = 10, scale = 0)
	public Long getPubId() {
		return this.pubId;
	}

	public void setPubId(Long pubId) {
		this.pubId = pubId;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "H_PUBLISH_DATE", length = 7)
	public Date getHpublishDate() {
		return hpublishDate;
	}
	public void setHpublishDate(Date hpublishDate) {
		this.hpublishDate = hpublishDate;
	}
	
	@Column(name = "H_TYPE", precision = 10, scale = 0)
	public Long getHtype() {
		return htype;
	}
	public void setHtype(Long htype) {
		this.htype = htype;
	}

	@Column(name = "H_INPUT_PRICE", precision = 10, scale = 0)
	public Double getHinputPrice() {
		return hinputPrice;
	}
	 public void setHinputPrice(Double hinputPrice) {
		this.hinputPrice = hinputPrice;
	}
	@Column(name = "H_AUTHOR", length = 20)
	public String getHauthor() {
		return hauthor;
	}
	public void setHauthor(String hauthor) {
		this.hauthor = hauthor;
	}

	@Column(name = "H_LEVEL", length = 10)
	public String getHlevel() {
		return hlevel;
	}
	public void setHlevel(String hlevel) {
		this.hlevel = hlevel;
	}
	@Column(name = "IS_MY", length = 10)
	public String getIsMy() {
		return this.isMy;
	}

	public void setIsMy(String isMy) {
		this.isMy = isMy;
	}

	@Column(name = "FLAG_SALES_CLASS", length = 10)
	public String getFlagSalesClass() {
		return this.flagSalesClass;
	}

	public void setFlagSalesClass(String flagSalesClass) {
		this.flagSalesClass = flagSalesClass;
	}

	@Column(name = "KB_ID", length = 10)
	public String getKbId() {
		return this.kbId;
	}

	public void setKbId(String kbId) {
		this.kbId = kbId;
	}

	@Column(name = "ZZ_ID", length = 10)
	public String getZzId() {
		return this.zzId;
	}

	public void setZzId(String zzId) {
		this.zzId = zzId;
	}

	@Column(name = "VEDIO_ID", precision = 15, scale = 0)
	public Long getVedioId() {
		return this.vedioId;
	}

	public void setVedioId(Long vedioId) {
		this.vedioId = vedioId;
	}

	@Column(name = "O_ID_LASTGR", length = 10)
	public String getoIdLaster() {
		return this.oIdLaster;
	}

	public void setoIdLaster(String oIdLaster) {
		this.oIdLaster = oIdLaster;
	}

	@Column(name = "DISCOUNT_MEMBER", precision = 10, scale = 0)
	public Double getDiscountMember() {
		return this.discountMember;
	}

	public void setDiscountMember(Double discountMember) {
		this.discountMember = discountMember;
	}

	@Column(name = "DISCOUNT_PX", precision = 10, scale = 0)
	public Double getDiscountPx() {
		return this.discountPx;
	}

	public void setDiscountPx(Double discountPx) {
		this.discountPx = discountPx;
	}

	@Column(name = "DISCOUNT_LS", precision = 10, scale = 0)
	public Double getDiscountLs() {
		return this.discountLs;
	}

	public void setDiscountLs(Double discountLs) {
		this.discountLs = discountLs;
	}

	@Column(name = "PRICE_PX", precision = 10, scale = 0)
	public Double getPricePx() {
		return this.pricePx;
	}

	public void setPricePx(Double pricePx) {
		this.pricePx = pricePx;
	}

	@Column(name = "PRICE_MEMBER", precision = 10, scale = 0)
	public Double getPriceMember() {
		return this.priceMember;
	}

	public void setPriceMember(Double priceMember) {
		this.priceMember = priceMember;
	}

	@Column(name = "PRICE_LS", precision = 10, scale = 0)
	public Double getPriceLs() {
		return this.priceLs;
	}

	public void setPriceLs(Double priceLs) {
		this.priceLs = priceLs;
	}

	@Column(name = "SHELF_ID", length = 10)
	public String getShelfId() {
		return this.shelfId;
	}

	public void setShelfId(String shelfId) {
		this.shelfId = shelfId;
	}

	@Column(name = "H_PACKAGE_AMOUNT", precision = 10, scale = 0)
	public Long getHpackageAmount() {
		return hpackageAmount;
	}
	public void setHpackageAmount(Long hpackageAmount) {
		this.hpackageAmount = hpackageAmount;
	}

	@Column(name = "H_PACKAGE_PIECE", precision = 10, scale = 0)
	public Long getHpackagePiece() {
		return hpackagePiece;
	}
	public void setHpackagePiece(Long hpackagePiece) {
		this.hpackagePiece = hpackagePiece;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "INPUT_DATE", length = 7)
	public Date getInputDate() {
		return this.inputDate;
	}

	public void setInputDate(Date inputDate) {
		this.inputDate = inputDate;
	}

	@Column(name = "H_BANCI", length = 10)
	public String getHbanci() {
		return this.hbanci;
	}

	public void setHbanci(String hbanci) {
		this.hbanci = hbanci;
	}

	@Column(name = "H_FACTORY", length = 20)
	public String getHfactory() {
		return this.hfactory;
	}

	public void setHfactory(String hfactory) {
		this.hfactory = hfactory;
	}

	@Column(name = "H_TRANSLATOR", length = 20)
	public String getHtranslator() {
		return htranslator;
	}
	public void setHtranslator(String htranslator) {
		this.htranslator = htranslator;
	}

	@Column(name = "H_TAOZHUANG", length = 10)
	public String getHtaozhuang() {
		return htaozhuang;
	}
	public void setHtaozhuang(String htaozhuang) {
		this.htaozhuang = htaozhuang;
	}

	@Column(name = "H_RUN_STYLE", length = 10)
	public String getHrunStyle() {
		return hrunStyle;
	}
	public void setHrunStyle(String hrunStyle) {
		this.hrunStyle = hrunStyle;
	}

	@Column(name = "H_WEIGHT", precision = 10, scale = 0)
	public Long getHweight() {
		return hweight;
	}
	public void setHweight(Long hweight) {
		this.hweight = hweight;
	}
	@Column(name = "H_HEIGHT", precision = 10, scale = 0)
	public Long getHheight() {
		return hheight;
	}
	public void setHheight(Long hheight) {
		this.hheight = hheight;
	}

	@Column(name = "H_WORD_NUMBER", precision = 5, scale = 0)
	public Integer getHwordNumber() {
		return hwordNumber;
	}
	public void setHwordNumber(Integer hwordNumber) {
		this.hwordNumber = hwordNumber;
	}
	@Column(name = "H_MEDIA", length = 10)
	public String getHmedia() {
		return hmedia;
	}
	public void setHmedia(String hmedia) {
		this.hmedia = hmedia;
	}

	@Column(name = "H_SERIES_BOOK", length = 20)
	public String getHseriesBook() {
		return hseriesBook;
	}
	public void setHseriesBook(String hseriesBook) {
		this.hseriesBook = hseriesBook;
	}
	@Column(name = "H_YINSHU", precision = 10, scale = 0)
	public Long getHyinshu() {
		return hyinshu;
	}
	public void setHyinshu(Long hyinshu) {
		this.hyinshu = hyinshu;
	}

	@Column(name = "H_YINZHANG", precision = 10, scale = 0)
	public Long getHyinzhang() {
		return hyinzhang;
	}
	public void setHyinzhang(Long hyinzhang) {
		this.hyinzhang = hyinzhang;
	}

	@Column(name = "H_YINCI", precision = 10, scale = 0)
	public Long getHyinci() {
		return hyinci;
	}
	public void setHyinci(Long hyinci) {
		this.hyinci = hyinci;
	}

	@Column(name = "BZ_ID", length = 10)
	public String getBzId() {
		return this.bzId;
	}

	public void setBzId(String bzId) {
		this.bzId = bzId;
	}

	@Column(name = "U_ID", length = 10)
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}

	@Column(name = "H_ID_BELONGS", length = 20)
	public String getHidBelongs() {
		return hidBelongs;
	}
	public void setHidBelongs(String hidBelongs) {
		this.hidBelongs = hidBelongs;
	}
	@Column(name = "MANAGER_EDITOR", length = 20)
	public String getManagerEditor() {
		return this.managerEditor;
	}

	public void setManagerEditor(String managerEditor) {
		this.managerEditor = managerEditor;
	}

	@Column(name = "AREAR_LIMIT_NAME", length = 20)
	public String getArearLimitName() {
		return this.arearLimitName;
	}

	public void setArearLimitName(String arearLimitName) {
		this.arearLimitName = arearLimitName;
	}

	@Column(name = "IS_LOCK", precision = 10, scale = 0)
	public Long getIsLock() {
		return this.isLock;
	}

	public void setIsLock(Long isLock) {
		this.isLock = isLock;
	}

	@Column(name = "MEMO", length = 100)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Column(name = "PRODUCT_UP", precision = 9, scale = 0)
	public Integer getProductUp() {
		return this.productUp;
	}

	public void setProductUp(Integer productUp) {
		this.productUp = productUp;
	}

	@Column(name = "PRODUCT_DOWN", precision = 5, scale = 0)
	public Integer getProductDown() {
		return this.productDown;
	}

	public void setProductDown(Integer productDown) {
		this.productDown = productDown;
	}

	@Column(name = "IS_EXIST", length = 5)
	public String getIsExist() {
		return this.isExist;
	}

	public void setIsExist(String isExist) {
		this.isExist = isExist;
	}

	@Column(name = "INPUT_MAN", length = 10)
	public String getInputMan() {
		return this.inputMan;
	}

	public void setInputMan(String inputMan) {
		this.inputMan = inputMan;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_MOD_DATE", length = 7)
	public Date getLastModDate() {
		return this.lastModDate;
	}

	public void setLastModDate(Date lastModDate) {
		this.lastModDate = lastModDate;
	}

	@Column(name = "O_ID_LASTMODIFY", length = 10)
	public String getOidLastModify() {
		return oidLastModify;
	}
	public void setOidLastModify(String oidLastModify) {
		this.oidLastModify = oidLastModify;
	}
}